package com.liner;

public class WhileDemo {
    public static void main(String[] args) {

        /*
         * 输出10次 "行动是进步的阶梯"
         *
         *
         * */
        int i = 1;  //循环变量初始化
        while (i <= 10) {   //循环条件
            System.out.print("输入的是第" + i + "遍:");
            System.out.println("行动是进步的阶梯");
            i++;  //循环变量的改变
        }

        System.out.println("----------------");
        int num = 1;
        while (num <= 9) {
            System.out.println(num + " * 9 = " + num * 9);
            num++;
        }

    }
}
